n=int(input())
list1=list(map(int, input().split()))
list1.append(0)
list2=[]
for i in range(0,n,1):
if list1[i]<=list1[i+1]:
list2.append("x")
else:
list2.append("0")
str1=("".join(list2))
list3=list(str1.split("0"))
count=1
for i in list3:
if len(i)>=count:
count=len(i)+1
print(count)
Missing numbers | Maximum sum |
13 Reasons Why | Friend's Relationship |
Health of a person | Divisibility |
A. Movement | Numbers in a matrix |
Sequences | Split houses |
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |
Duration | Birthday Party |
e-maze-in | Bricks Game |
Char Sum | Two Strings |
Anagrams | Prime Number |
Lexical Sorting Reloaded | 1514A - Perfectly Imperfect Array |